Archeologists have come to the conclusion that most of the people we refure to as Israelites were in fact cannaanites with possible mix of some refugee of other races settling into the area.
I was thinking of that as an explanation.
I wonder what the motive was for whoever wrote the account in Joshua, to elevate the Israelites? And why did the other people living in Canaan not object when they read the makeup account? It would have been easy for them to call the accounts a lie and write their own version of what really happened. Why didn’t they? It would have put a stop back then to the rest of the compilation of the Bible.
If there would have been two accounts or even several accounts, one Jewish and one or several from any of those nations, Hittites, Philistines, or Edomite’s, it would have called into question all the Bible books.
Instead, because no one challenged the stories back then, and let the stories slide throughout history, we now have an “INSPIRED BOOK FROM GOD” and it’s very difficult to convince Christians and Jews, otherwise.